-- GENERATED SPELL FOR [Silverbrook Defender] --


function spell0_27676(pUnit, Event) --@Lumberjack Slam,n/a--
pUnit:FullCastSpellOnTarget(52318,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27676', 2312, 1)
end

function spell1_27676(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(12054,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27676', 15000, 1)
end

function Sorts_27676(pUnit, Event)
local choix_sorts_27676 = math.random(0, 1)
if choix_sorts_27676 == 0 then
pUnit:RegisterEvent('spell0_27676', 1, 1)
end
if choix_sorts_27676 == 1 then
pUnit:RegisterEvent('spell1_27676', 1, 1)
end
end

function mob27676_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27676', math.random(1500, 3000), 1)
end

function mob27676_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27676_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27676_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27676, 1, 'mob27676_Action')
RegisterUnitEvent(27676, 2, 'mob27676_Leave')
RegisterUnitEvent(27676, 3, 'mob27676_Kill')
RegisterUnitEvent(27676, 4, 'mob27676_Die')
